<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%  response.addDateHeader("Expires", 0);response.setHeader("Pragma","no-cache"); response.setHeader("Cache-Control","no-cache");%>
<html>
<head>
<title>矿山救护远程调度管理指挥系统</title>
	<link href="../../css/style.css" rel="stylesheet" type="text/css">
	<link href="../../css/table.css" rel="stylesheet" type="text/css">
	<link href="../../css/calendar.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="../../js/calendar.js"></script>
	<script type="text/javascript" src="../../js/common.js"></script>
	<script type="text/javascript">
		// 查询
	    function search() {
	    	searchForm.executeTime.value = searchForm.executeYear.value + "-" + searchForm.executeMonth.value;
	    	searchForm.submit();
		}
	    function print() {
	    
	   
	       var personId = document.getElementById("personId").value;
	    	var deptId = document.getElementById("deptId").value;
	         var timestamp=searchForm.executeYear.value + "-" + searchForm.executeMonth.value;
	         alert(timestamp);
	     //alert(timestamp);
	       //var executeMonth=document.getElementById("executeMonth").value;

		window.location.href="statis_print.jsp?personId="+personId+"&deptId="+deptId;
			//  window.location.href="statis_print.jsp";
		}
	</script>
<body rightmargin="0" bottommargin="0" leftmargin="0" topmargin="0" onclick="clickBody();" style="background: #ffffff;">
<form name="searchForm" id="searchForm" action="statis_data.jsp" target="dataFrame" method="get">
<input type="hidden" name="staticSearch" value="staticSearch">
<input type="hidden" name="executeTime" value="">
<table width="100%" height="100%"  border="0" align="center" cellpadding="0" cellspacing="0" style="table-layout: fixed;">
	<!-- 位置导航栏 -->
	<tr height="25px">
		<td width="100%" align="center" valign="top">
			 <table width="98%" border="0" cellpadding="0" cellspacing="0" class="tabtitle">
              <tr>
                <td width="4%" valign="top"><img src="../../img/pic_dot1.gif" width="37" height="22"></td>
                <td width="96%" valign="middle">当前位置：<a href="#" class="n">信息管理系统</a> &gt;&gt; <a href="#" class="n">工作日志</a> &gt;&gt; <a href="#" class="n">考勤统计</a></td>
              </tr>
            </table>
		</td>
	</tr>
   
   <!-- 查询工具条 -->
   <tr height="29px">
	   <td valign="top">
	   		<table width="98%" height="29" cellpadding="0" cellspacing="0" align="center" border="0">
	   			<tr height="100%">
		   			<td class="td_title" width="70" align="center">
		   				查询
		   			</td>
		   			<td class="td_title" width="240" align="left">
		   				<table cellpadding="0" cellspacing="0" border="0">
		   					<tr>
		   						<td align="center" width="50px">单位</td>
		   						<td width="167px">
		   							<span class="treeSpan" onclick="showTree(this,'../common/deptTree.jsp');" treeSelect="true">
										<input nodeId="" id="deptTreeInput" value="" 
											style="width: 150px;" readonly="readonly" 
											treeSelect="true"><input name="deptId" value="" type="hidden">
									</span>
		   						</td>
		   					</tr>
		   				</table>
		   			</td>
		   			<td class="td_title" width="240" align="left">
		   				<table cellpadding="0" cellspacing="0" border="0">
		   					<tr>
		   						<td align="center" width="50px">姓名</td>
		   						<td width="167px">
		   							<span class="treeSpan" onclick="showTree(this, '../common/personTree.jsp');" treeSelect="true">
										<input nodeId="" id="deptTreeInput" value="" 
											style="width: 150px;" readonly="readonly" 
											treeSelect="true"><input name="personId" value="" type="hidden">
									</span>
		   						</td>
		   					</tr>
		   				</table>
		   			</td>
		   			<td class="td_title">
		   				<table cellpadding="0" cellspacing="0" border="0">
		   					<tr>
		   						<td align="center">
		   							&nbsp;<select name="executeYear" style="width: 70px">
		   								<option value="2010">2010</option>
		   								<option value="2011">2011</option>
		   								<option value="2012">2012</option>
		   								<option value="2013">2013</option>
		   								<option value="2014">2014</option>
		   							</select>
		   						</td>
		   						<td align="center" width="50px">年</td>
		   						<td align="center">
		   							&nbsp;<select name="executeMonth" style="width: 70px">
			   							<option value="01">01</option>
			   							<option value="02">02</option>
			   							<option value="03">03</option>
			   							<option value="04">04</option>
			   							<option value="05">05</option>
			   							<option value="06">06</option>
			   							<option value="07">07</option>
			   							<option value="08">08</option>
			   							<option value="09">09</option>
			   							<option value="10">10</option>
			   							<option value="11">11</option>
			   							<option value="12">12</option>
		   							</select>
		   						</td>
		   						<td align="center" width="50px">月</td>
		   					</tr>
		   				</table>
		   			</td>
		   			<td class="td_title" style="border-right: 1px #a3c6e2 solid;border-left: none;padding-left:20px;">
							<input name="Button12" type="button" class="button_cx" value="" title="查询" onclick="search();">
					</td>
	   			</tr>
	   		</table>
	   </td>
   </tr>
   
   <!-- 空格 -->
   <tr height="3px">
		<td>
			&nbsp;
		</td>
   </tr>
   

   
   <!-- 空格 -->
   <tr height="5px">
		<td>
			&nbsp;
		</td>
   </tr>
   
   <!-- 数据列表 -->
   <tr>
	<td align="center">
		<iframe src="statis_data.jsp"  name="dataFrame" frameborder="0" width="98%" height="100%" scrolling="no"></iframe>
	</td>
   </tr>
</table>
<!-- 隐藏树 -->
<iframe src="#" frameborder="0" id="treeFrame" name="frame" style="display: none;position: absolute;"></iframe>
</form>
</body>
</html>
